<?php
App::uses('AppModel', 'Model');
/**
 * Terv Model
 *
 * @property Osztalyok $Osztalyok
 * @property Riportsor $Riportsor
 */
class Terv extends AppModel {

/**
 * Validation rules
 *
 * @var array
 */
	public $validate = array(
		'osztaly_id' => array(
			'numeric' => array(
				'rule' => array('numeric'),
				//'message' => 'Your custom message here',
				//'allowEmpty' => false,
				//'required' => false,
				//'last' => false, // Stop validation after this rule
				//'on' => 'create', // Limit validation to 'create' or 'update' operations
			)
		),
		'riportsor_id' => array(
			'numeric' => array(
				'rule' => array('numeric'),
				//'message' => 'Your custom message here',
				//'allowEmpty' => false,
				//'required' => false,
				//'last' => false, // Stop validation after this rule
				//'on' => 'create', // Limit validation to 'create' or 'update' operations
			)
		),
		'ho' => array(
			'numeric' => array(
				'rule' => array('numeric'),
			)
		),		
		'ev' => array(
			'numeric' => array(
				'rule' => array('numeric'),
			)
		)
	);

	//The Associations below have been created with all possible keys, those that are not needed can be removed

/**
 * belongsTo associations
 *
 * @var array
 */
	public $belongsTo = array(
		'Osztalyok' => array(
			'className' => 'Osztaly',
			'foreignKey' => 'osztaly_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		),
		'Riportsor' => array(
			'className' => 'Riportsor',
			'foreignKey' => 'riportsor_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		)
	);
}
